package com.yzh.oop3.teacher;

/**
 * 程序员类
 */
public class Programmer {
    //成员变量
    private String name = "pname";

    //方法1：子类继承的
    public void writeCode(){
        System.out.println("------Write Code------");
    }

    //方法2：子类重写的
    public void eat(){
        System.out.println("---------eating......---------");
    }
}
